//
//  UserRow.swift
//  icloud
//
//  Created by raymond on 2022/5/21.
//

import SwiftUI

struct UserRow: View {
  var user: TSysUser
  
  var body: some View {
    HStack {
      Image(systemName: "person.fill")
      Spacer()
      Text(user.username)
      Spacer()
      Text(user.mobile)
    }
    .padding(.leading)
  }
}

struct UserRow_Previews: PreviewProvider {
  static var data = DataSource().model.result
  static var previews: some View {
    UserRow(user: data[0])
  }
}
